#if !defined (__APP_MQTT_H__)
#define __APP_MQTT_H__

#define MQTT_SERVER "tcp://prod-blue.public-broker.com:1883"  // 替换为测试 Broker
#define CLIENT_ID "guaner-75fa20ca95f2"
// #define PULL_TOPIC "TEST_PULL"
// #define PUSH_TOPIC "TEST_PUSH"

#define PULL_TOPIC "TEST_TOPIC"
#define PUSH_TOPIC "TEST_TOPIC"

int app_mqtt_init();
void app_mqtt_registerRecvCallBack(int (*recv_callback)(char*, int));
int app_mqtt_send(char* json_str, int len);
void app_mqtt_close();
#endif